﻿using BestEasyCMS.Service.Messages;
using BestEasyCMS.Service.Messages.Security.Request;
using BestEasyCMS.Service.Messages.Security.Response;
using BestEasyCMS.Service.Views.Security;

namespace BestEasyCMS.Service.Interfaces.Security
{
    public interface IUserService : IService<UserView, long>
    {
        /// <summary>
        /// 登录请求
        /// </summary>
        /// <param name="request">请求信息</param>
        /// <returns>响应结果</returns>
        LoginResponse Login(LoginRequest request);
        /// <summary>
        /// 注册请求
        /// </summary>
        /// <param name="request">请求信息</param>
        /// <returns></returns>
        ResponseBase Register(RegisterUserRequest request);
        /// <summary>
        /// 获取分页数据
        /// </summary>
        /// <param name="request"></param>
        /// <returns></returns>
        FindPageResponse<UserView> FindPageBy(GetUserPageRequest request);
    }
}
